Leadtools.Dicom.Common Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
ConvertFrom(ITypeDescriptorContext,CultureInfo,Object) Method
See Also 
Leadtools.Dicom.Common.Editing.Converters Namespace > EnumValueConverter<T> Class > ConvertFrom Method : ConvertFrom(ITypeDescriptorContext,CultureInfo,Object) Method



context
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
culture
The System.Globalization.CultureInfo to use as the current culture.
value
The System.Object to convert.
context
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
culture
The System.Globalization.CultureInfo to use as the current culture.
value
The System.Object to convert.
Converts the given object to the type of this converter, using the specified context and culture information.

Syntax

Visual Basic (Declaration) 
Overloads Overrides Public Function ConvertFrom( _
   ByVal context As ITypeDescriptorContext, _
   ByVal culture As CultureInfo, _
   ByVal value As Object _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As EnumValueConverter(Of T)
Dim context As ITypeDescriptorContext
Dim culture As CultureInfo
Dim value As Object
Dim value As Object
 
value = instance.ConvertFrom(context, culture, value)
C# 
public override object ConvertFrom( 
   ITypeDescriptorContext context,
   CultureInfo culture,
   object value
)
C++/CLI 
public:
Object^ ConvertFrom( 
   ITypeDescriptorContext^ context,
   CultureInfo^ culture,
   Object^ value
) override 

Parameters

context
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
culture
The System.Globalization.CultureInfo to use as the current culture.
value
The System.Object to convert.

Return Value

An System.Object that represents the converted value.

Exceptions

ExceptionDescription
System.NotSupportedException The conversion cannot be performed.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Dicom.Common requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features